package cn.itsource.org.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.vo.EmployeeRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee findByName(String username);

    void addEmployeeRole(@Param("eId") Long eId, @Param("roles") List<Long> roles);

    void deleteByEmpId(Long id);

    List<EmployeeRole> findRoleIdsByEIds(List<Long> eIds);

    Employee selectByLogininfoId(Long id);

    List<Employee> selectByShopId(Long shopId);
}
